﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using MonitorServersWeb;

public partial class Controls_ucServerServices : System.Web.UI.UserControl
{
    public ServerInfo serverInfo { set; get; }
    public  List<ServerServices > serviceslist;
    protected void Page_Load(object sender, EventArgs e)
    {
      
        GridView1.DataSource = serviceslist;
        GridView1.DataBind();
    }
    public Color GetStatusColor(object Status)
    {
        if (Status.ToString().ToUpper() != "RUNNING")
        {
            return Color.Red;
        }
        else
        {
            return Color.Green;
        }
        
    }
}